<?php
	require_once("pub.php");
	require_once(_ROOT."/db.php");
	require_once(_ROOT."/am/title.php");
	//include (_ROOT."/js/func.js");
	
	//$var_mark = getMark();
	//$var_mark = '20100411';
	$var_mark = $_GET['ID'];
?>
<form action="" method="" name="form1" onSubmit="return confirm('删除后将不能恢复，你确定删除么？')">
	<table width="768" align="center">
		<tr><td><b>当前考题类型标识: <?php echo $var_mark; ?></b></td></tr>
		<tr><td height="10"></td></tr>
	</table>
	<table width="768" align="center">
		<?php	
		$sql = 'select * from t_text where t_mark='.$var_mark.'';
		$data = mysql_query($sql, $conn);
		while ($arr = mysql_fetch_array($data))
		{
			$textID = $var_mark.$arr['t_eid'];
		?>
			<tr onMouseOver="this.bgColor='#D2D2D2';" onMouseOut="this.bgColor='#F4F4F4';">
				<td>
					<input name="ID" type="checkbox" value="<?php echo $textID; ?>" />
				</td>
				<td width="92%">
					第<?echo $arr['t_eid'];?>题: <?php echo $arr['t_ques'];?>
				</td>
				<td width="8%">
					<a href="updateContent.php?ID=<?php echo $textID;?>">修改</a> 
					<a href="delContent.php?ID=<?php echo $textID;?>" onClick="return confirm('删除后文章将不能恢复，你确定删除么？')">删除</a>		
				</td>
			</tr>
		<?php	
		}
		mysql_free_result($data);
		?>
	</table>
	<table width="768" align="center">
		<tr>
			<td>
			选择: <a href="javascript:selectAll()">全选</a>&nbsp;&nbsp;
			<a href="javascript:cancelSelect()">取消</a>&nbsp;&nbsp;
			<input type="submit" name="Submit" value="删除所有" />&nbsp;&nbsp;
			</td>
		</tr>
</form>	

<?php
	require_once(_ROOT."/am/bottom.php");
?>